//
//  PerfectCarInfoVC3.m
//  Zhiche-Carriage
//
//  Created by LeeBruce on 16/7/15.
//  Copyright © 2016年 LeeBruce. All rights reserved.
//

#import "PerfectCarInfoVC3.h"
#import "TopBackView.h"
#import "CarView.h"

@interface PerfectCarInfoVC3 ()

@end

@implementation PerfectCarInfoVC3

- (void)viewDidLoad {
    [super viewDidLoad];
    TopBackView *topBackView= [[TopBackView alloc]initViewWithFrame:CGRectMake(0, 0, screenWidth, 64) andTitle:@"司机认证"];
    
    [topBackView.leftButton addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
    
    topBackView.rightButton.hidden = YES;
    
    [self.view addSubview:topBackView];
    
    self.view.backgroundColor = GrayColor;
    
    
    CarView *carView = [[CarView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(topBackView.frame), screenWidth, 80) andInteger:3];
    carView.backgroundColor = WhiteColor;

    
    [self.view addSubview:carView];
    
    [self initSubViews];
}

-(void)initSubViews
{
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 154, screenWidth, 140)];
    view.backgroundColor = WhiteColor;
    
    UIImageView *imageV = [[UIImageView alloc]initWithFrame:CGRectMake((screenWidth - 43)/2.0, 30, 43, 54)];
    imageV.image = [UIImage imageNamed:@"step_examine "];
    [view addSubview:imageV];
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(imageV.frame), screenWidth, 35)];
    label.text = @"信息提交成功等待审核";
    label.textColor = Color_RGB(156, 156, 156, 1);
    label.textAlignment = NSTextAlignmentCenter;
    label.font = Font(13);
    [view addSubview:label];
    
    
    UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
    doneButton.frame = CGRectMake(14, CGRectGetMaxY(view.frame) + 30, screenWidth - 28, Button_height);
    doneButton.backgroundColor = YellowColor;
    [doneButton setTitle:@"完成" forState:UIControlStateNormal];
    [doneButton setTitleColor:WhiteColor forState:UIControlStateNormal];
    doneButton.layer.cornerRadius = 5;
    [doneButton addTarget:self action:@selector(doneButton) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:view];
    [self.view addSubview:doneButton];

    
    
}

-(void)doneButton
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

-(void)backAction
{
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
